package dp.gr03.payroll.methodTransactions;

import dp.gr03.payroll.methods.MailMethod;
import dp.gr03.payroll.payrollDomain.PaymentMethod;

public class ChangeMailTransaction extends ChangeMethodTransaction
{
    private String address;
    
    public ChangeMailTransaction(int empId, String address)
    {
        super(empId);
        this.address = address;
    }

    @Override
    public PaymentMethod getPaymentMethod()
    {
        return new MailMethod(address);
    }

}
